//
//  USCustomMenu.h
//  usale0001
//
//  Created by YU on 15/11/16.
//  Copyright © 2015年 YU. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol USCustomMenuDelegate <NSObject>

- (void)usCustomMenu:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath;

@end

typedef void(^Dismiss)(void);

@interface USCustomMenu : UIView<UITableViewDataSource, UITableViewDelegate>

@property (nonatomic, strong) UITableView *tableView;
@property (nonatomic, assign) id<USCustomMenuDelegate> delegate;
@property (nonatomic, strong) NSArray *arrData;
@property (nonatomic, strong) NSArray *arrImgName;
@property (nonatomic, copy) Dismiss dismiss;
@property (nonatomic, strong) UIColor *textColor;
@property (nonatomic, strong) UIColor *selectedColor;
@property (nonatomic, assign) BOOL NotDissmiss;


@property (nonatomic, assign) BOOL badgeShow;

- (instancetype)initWithDataArr:(NSArray *)dataArr origin:(CGPoint)origin width:(CGFloat)width rowHeight:(CGFloat)rowHeight;

- (void)dismissWithCompletion:(void (^)(USCustomMenu *object))completion;
@end

